Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/dotnet fsi
open System
open System.Collections.Generic
open System.Globalization
open System.IO
open System.Net.Http
open System.Numerics
open System.Text
@spinxz
spinxz / ddclient.conf
Created June 20, 2015 15:52
ddclient configuration file with support for upnp compatible routers or modems (e.g. Huawei HiLink modem)
# Configuration file for ddclient
#
# /etc/ddclient.conf
#
# ddclient configuration for servers behind a UPNP compatible NAT router or modem
#
# 1. Install ddclient, ssl support and upnpclient : sudo apt-get install ddclient libio-socket-ssl-perl miniupnpc
# 2. Copy this configuration file to /etc/ddclient.conf
# 3. Adapt the configuration below (especially the <...> fields)
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@jorkle
jorkle / go-updater.sh
Created March 1, 2025 02:35
Go Updater (go-updater.sh) - bash script that automatically downloads and installs the latest stable version of Golang
#!/bin/bash
#
# Checks if a new stable version of Go is available. If a new version is available, it will download and install it.
set -o pipefail
######################################
# Constants #
######################################
OS="linux"
@rxaviers
rxaviers / gist:7360908
Last active March 7, 2026 08:34
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: ๐Ÿ˜„ :smile: ๐Ÿ˜† :laughing:
๐Ÿ˜Š :blush: ๐Ÿ˜ƒ :smiley: โ˜บ๏ธ :relaxed:
๐Ÿ˜ :smirk: ๐Ÿ˜ :heart_eyes: ๐Ÿ˜˜ :kissing_heart:
๐Ÿ˜š :kissing_closed_eyes: ๐Ÿ˜ณ :flushed: ๐Ÿ˜Œ :relieved:
๐Ÿ˜† :satisfied: ๐Ÿ˜ :grin: ๐Ÿ˜‰ :wink:
๐Ÿ˜œ :stuck_out_tongue_winking_eye: ๐Ÿ˜ :stuck_out_tongue_closed_eyes: ๐Ÿ˜€ :grinning:
๐Ÿ˜— :kissing: ๐Ÿ˜™ :kissing_smiling_eyes: ๐Ÿ˜› :stuck_out_tongue:
@StudioLE
StudioLE / Caddyfile
Created March 7, 2026 08:30
Caddy as a reverse proxy to Hikvision NVR
hikvision.example.com {
reverse_proxy http://YOUR_NVR_IP:80 {
header_up -X-Forwarded-For
header_up -X-Forwarded-Proto
header_up -X-Forwarded-Host
}
}
@OmerFarukOruc
OmerFarukOruc / oc-cleanup
Last active March 7, 2026 08:30
oc-cleanup โ€” Find and kill orphaned OpenCode processes on Linux (workaround for issue #15348)
#!/usr/bin/env bash
# oc-cleanup โ€” Find and kill orphaned opencode processes (no TTY)
# Usage:
# oc-cleanup โ†’ list orphans only (dry run)
# oc-cleanup kill โ†’ kill them all
# oc-cleanup watch โ†’ show live opencode resource usage
# oc-cleanup guard โ†’ continuous watchdog (default: 1024MB threshold, 60s interval)
# oc-cleanup guard 512 โ†’ custom RAM threshold in MB
# oc-cleanup guard 512 30 โ†’ custom threshold + check interval in seconds
@ddyykk
ddyykk / backup_firefly_docker.md
Last active March 7, 2026 08:25
The scripts used for backup and restore data in Firefly III docker containers. Steps are in the .md file.

Usage Instructions:

  1. Backup Script (backup_firefly_docker.sh):

    • Run the script: ./backup_firefly_docker.sh
    • Enter the database password when prompted.
    • The script will create a backup of the database and uploads directory, compress it, and verify its contents. The files will be in the directory of your current path. (The path when you run the script)
    • The backup file and its checksum will be saved in the firefly_backups directory.
  2. Restore Script (restore_firefly_docker.sh):

@lowkingshih
lowkingshih / 00-complete-guide.md
Created February 7, 2026 03:49
OpenClaw ๅฎŒๆ•ด็ ”็ฉถๅ ฑๅ‘Š๏ผšๆžถๆง‹ๅˆ†ๆžใ€ๆฏ”่ผƒๅ ฑๅ‘Šใ€่‡ชๆˆ‘ๆ“ดๅฑ• Agent ็ณป็ตฑ

OpenClaw ๅฎŒๆ•ดๆžถๆง‹ๆŒ‡ๅ—

ๆœฌๆ–‡ๆช”ๆ—จๅœจ่ฎ“ไฝ ๅนพไนŽไธ้œ€่ฆๆŸฅ็œ‹ Source Code๏ผŒๅฐฑ่ƒฝๅฎŒๅ…จ็†่งฃ OpenClaw ้€™ๅ€‹้–‹ๆบ AI Agent ็ณป็ตฑใ€‚


็›ฎ้Œ„

  1. ๆฆ‚่ฟฐ่ˆ‡ๅฎšไฝ
  2. ๆ•ด้ซ”ๆžถๆง‹
@veekaybee
veekaybee / normcore-llm.md
Last active March 7, 2026 08:19
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models